import request from '@/utils/request'

// 查询对外付款-保证金列表
export function listAnxinEarnestMoney(query) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/list',
    method: 'get',
    params: query
  })
}
// 查询对外付款-保证金列表
export function getEarnestMoneyList(query) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/getEarnestMoneyList',
    method: 'get',
    params: query
  })
}

// 查询对外付款-保证金详细
export function getAnxinEarnestMoney(id) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/' + id,
    method: 'get'
  })
}
// 查询对外付款-保证金详细
export function getEarnestMoneyByPaymentTypeId(paymentTypeId) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/getEarnestMoneyByPaymentTypeId/' + paymentTypeId,
    method: 'get'
  })
}

// 保存对外付款-保证金
export function saveAnxinEarnestMoney(data) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/save',
    method: 'post',
    data: data
  })
}

// 删除对外付款-保证金
export function delAnxinEarnestMoney(id) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/' + id,
    method: 'delete'
  })
}

// 导出对外付款-保证金
export function exportAnxinEarnestMoney(query) {
  return request({
    url: '/earnestMoney/anxinEarnestMoney/export',
    method: 'get',
    params: query
  })
}
